#include "headmenuform.h"

#include "ui_headmenuform.h"

#include <QDebug>
#include <mainwindow/search/searchform.h>

HeadMenuForm::HeadMenuForm(QWidget* parent)
    : InfoWidget(parent),
      ui(new Ui::HeadMenuForm) {
    ui->setupUi(this);
}

HeadMenuForm::~HeadMenuForm() {
    delete ui;
}

void HeadMenuForm::on_btn_add_clicked() {
    auto searchForm = new SearchForm();
    searchForm->setAttribute(Qt::WA_DeleteOnClose, true);
    searchForm->show();
    this->close();
}

void HeadMenuForm::on_btn_createRoom_clicked() {
}
